idf_component_register(SRCS "./src/om.cpp" "./om/src/app/om_afl.c" "./om/src/app/om_com.c" "./om/src/app/om_evt.c" "./om/src/app/om_fmt.c" "./om/src/app/om_log.c" "./om/src/app/om_msg.c" "./om/src/comp/om_color.c" "./om/src/comp/om_crc.c" "./om/src/comp/om_fifo.c" "./om/src/comp/om_list.c" "./om/src/comp/om_rbt.c" "./om/src/core/om_core.c" "./om/src/om.c"
                    INCLUDE_DIRS "." "./om/config/" "./src/" "./om/src/" "./om/src/app/" "./om/src/comp/" "./om/src/core/" "./om/src/comp/"
                    REQUIRES )

cmake_minimum_required(VERSION 3.11)

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/om/src)

file(GLOB OneMessageCPP_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")

target_sources(OneMessage PUBLIC ${OneMessageCPP_SOURCES})

target_include_directories(
  OneMessage
  PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_SOURCE_DIR}/om/src ${CMAKE_CURRENT_SOURCE_DIR}/om/src/app ${CMAKE_CURRENT_SOURCE_DIR}/om/src/comp ${CMAKE_CURRENT_SOURCE_DIR}/om/src/core ${CMAKE_CURRENT_SOURCE_DIR}/om/config)

